Automattic\Jetpack\Paypal_Payments\Simple_Payments A

Total Complexity 60
Dependencies 5
Dependents 2
Total lines 743
Lines of code 432
Logical lines of code 106
Comment lines 245
Methods 27
Properties 6

Methods 27

Method Rating Maintainability Complexity Lines of code
parse_shortcode()
S
49 5 32
get_product()
S
61 6 13
register_meta_fields_in_rest_api()
S
42 1 74
is_enabled_jetpack_simple_payments()
S
66 5 8
validate_product()
S
60 4 14
setup_cpts()
S
43 1 58
is_valid()
S
63 4 12
output_shortcode()
S
48 2 38
get_instance()
S
66 4 8
sanitize_currency()
S
51 2 29
output_purchase_box()
S
53 2 25
enqueue_frontend_assets()
S
67 3 8
register_scripts_and_styles()
S
54 1 27
allow_sync_post_meta()
S
59 1 18
init_hook_action()
S
64 2 10
remove_auto_paragraph_from_product_description()
S
70 2 6
sanitize_price()
S
78 2 3
validate_paypal_email()
S
70 2 6
validate_price()
S
71 2 6
register_widget_simple_payments()
S
71 2 6
setup_paypal_checkout_button()
S
63 1 12
__construct()
S
98 1 1
register_init_hooks()
S
75 1 4
register_shortcode()
S
79 1 3
get_blog_id()
S
81 1 3
format_price()
S
79 1 3
allow_rest_api_types()
S
73 1 5